<?php
	include('MKheader.php');
	
	if(isset($_GET['page'])){
		//Get the requested page name
		$page = $_GET['page'];
		 
		//check if the requested page exists
		if(!file_exists('./'. $page . '.php')){
			//It does not exist, so - render a 404(not found) page
			$page = 'notfound';
		}
		 
	} else {
		//There is no requested page, so render the default one - the Homepage
		$page = 'MKindex';
	}
	 
	
	include ($page . '.php');
	include('MKfooter.php');
